(function () {
    let myChart = echarts.init(document.querySelector('.box-m4'))
    let option = {
        title: {
            text: '门店营收对比'
        },
        xAxis: {
            data: ['A店', 'B店', 'C店', 'D店', 'E店']
        },
        yAxis: {},
        series: [
            {
                data: [10, 22, 28, 43, 49],
                type: 'bar',
                stack: 'x'
            },
            {
                data: [5, 4, 3, 5, 10],
                type: 'bar',
                stack: 'x'
            }
        ]
    };
    myChart.setOption(option)
    window.addEventListener('resize', () => {
        myChart.resize()
    })
})()